_basePos = [getmarkerPos format["respawn_%1", side player] select 0,getmarkerPos format["respawn_%1", side player] select 1,0];

_sideChopper = nil;
_side = nil;
_sideCrew = nil;


if (side player == side0) then {
	_sideChopper = side0_chopperVeh;
	_side = side0;
	_sideCrew = side0_crew;
} else {
	_sideChopper = side1_chopperVeh;
	_side = side1;
	_sideCrew = side1_crew;
};


veh = createVehicle [_sideChopper, _basePos, [], 200, "FLY"];
_veh = veh;
_grp = createGroup _side;
transportPilot = _grp createUnit [_sideCrew, [0,0], [], 100, "FORM"];
transportGunner = _grp createUnit [_sideCrew, [0,0], [], 100, "FORM"];

player groupChat format ["%1 going on patrol.", typeof _veh];
_unit = transportPilot;
_gunner = transportGunner;
[_unit, _gunner] join _grp;
_unit moveInDriver _veh;

sleep 2;

//_grp move _pos;

[_grp] exec "server\deleteGroup.sqs";

Add_MarkersGroup = _grp;
Add_MarkersType = "b_air";
Add_Markers = true;

PublicVariable "Add_MarkersGroup";
PublicVariable "Add_MarkersType";
PublicVariable "Add_Markers";

_unit setCombatMode "RED";
_gunner setCombatMode "RED";
_gunner setSkill 1;
_unit setSkill 1;

sleep 1;

//_unit move _pos;
//_gunner move _pos;

foo = [_unit] execVM "server\ai\DefencePatrol.sqf";